package com.cuit.service.Impl;

import com.cuit.dao.PrintDao;
import com.cuit.dao.impl.PrintDaoImpl;
import com.cuit.pojo.doctorPrint;
import com.cuit.service.DoctorPrintService;

public class DoctorPrintServiceImpl implements DoctorPrintService {
    PrintDao printDao=new PrintDaoImpl();



    @Override
    public doctorPrint QueryNum(doctorPrint d) {
        d.name=printDao.QueryName(d.getD_id());
        d.department=printDao.QureyDepart(d.getD_id());
        d.setDayOrder(printDao.QueryOrderNum(d.getD_id()));
        return d;
    }

    @Override
    public doctorPrint QueryPer(doctorPrint d) {
        d.setMaxOrder(printDao.QueryMaxOrder(d.getD_id()));
        return d;
    }


}
